<?php
declare (strict_types = 1);

namespace app\validate;

use think\Validate;

/**
 * 验证规则基类
 * Class BaseValidate
 * @package app\validate
 */
class BaseValidate extends Validate
{
    /**
     * 自定义正则
     * @var string[]
     */
    protected $regex = [
        'url' => '/^(?=^.{3,255}$)(http(s)?:\/\/)(www\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\d+)*(\/\w+\.\w+)*$/'
    ];
}
